home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / delpages.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-09-02  |  1.0 KB  |  48 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef DELPAGES_H
  8. #define DELPAGES_H
  9.  
  10. #include "scribusapi.h"
  11. #include <QVBoxLayout>
  12. #include <QHBoxLayout>
  13. #include <QDialog>
  14.  
  15. class QLabel;
  16. class QPushButton;
  17. class QSpinBox;
  18.  
  19. class SCRIBUS_API DelPages : public QDialog
  20. {
  21.     Q_OBJECT
  22.  
  23. public:
  24.     DelPages( QWidget* parent, int currentPage, int maxPage );
  25.     ~DelPages() {};
  26.  
  27.     int getFromPage() const;
  28.     int getToPage() const;
  29.  
  30. private:
  31.     QVBoxLayout* dialogLayout;
  32.     QHBoxLayout* fromToLayout;
  33.     QHBoxLayout* okCancelLayout;
  34.  
  35.     QPushButton* cancelButton;
  36.     QPushButton* okButton;
  37.     QLabel* fromLabel;
  38.     QLabel* toLabel;
  39.     QSpinBox* toPageData;
  40.     QSpinBox* fromPageData;
  41.  
  42. private slots:
  43.     virtual void fromChanged(int pageNumber);
  44.     virtual void toChanged(int pageNumber);
  45. };
  46.  
  47. #endif // DELPAGES_H
  48.